package com.atguigu.gmall.activity.client;


import com.atguigu.gmall.product.client.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "service-activity")
public interface ActivityFeignClient {


    //查询秒杀数据
    @GetMapping("/api/activity/seckill/findAll")
    public List<SeckillGoods> findAll();


    //查询一个秒杀数据
    @GetMapping("/api/activity/seckill/findBySkuId/{skuId}")
    public SeckillGoods findBySkuId(@PathVariable Long skuId);

}
